<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        a{
            background: pink;
            padding: 20px;
            /* 行内元素转换成行内块元素 */
            display: inline-block;
        }
    </style>
</head>

<body>

    <a href="https://www.baidu.com">百度</a>
    <a href="https://www.baidu.com">百度</a>
    <a href="https://www.baidu.com">百度</a>
    <a href="https://www.baidu.com">百度</a>
    <div>234334</div>
</body>

</html>